<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>DreStarting-分类</title>
  <!--    抽取公共头部-->
  <div th:replace="share/common :: head"></div>
</head>
<body>

<!--    抽取公共导航-->
<div th:replace="share/common :: menu(2)"></div>


<!--顶部图片-->
<div class="m-bg-type_outer" style="width: 100%;height: 40%">
  <img src="../static/images/typebg.jpg" th:src="@{/images/typeBg.jpg}" alt="" class="ui m-bg image" style="width: 100%;height: 100%">
  <br>
  <div class="m-bg-class_cover">
    <div class="ui container" style="position: relative ;bottom: -540px;" id="waypoint">

      <div class="m-font-size-title m-right-bottom" align="center" style="font-family:'STXingkai'">文章分类</div>
      <div class="m-font-size-text-init-title m-margin-top" align="center">记忆是一种相聚的方式，放下是一种自由的形式。不必悲伤，不必忧愁，邂逅的回忆都是美好的故事</div>
    </div>
  </div>
</div>

<br>

<!--中间内容-->
<div  class="m-margin- animated fadeIn" >
  <div class="ui container">
    <div class="ui segment m-padded-tb-large m-opacity">
      <div class="ui container" align="center">
        <div class="ui labeled button m-margin-tb-tiny" th:each="type:${types}">
          <a href="#" class="ui basic  button" th:href="@{/types/{typesId}(typesId=${type.typesId})}" th:classappend="${activeByTypesId==type.typesId} ? 'teal'" th:text="${type.typesName}">好文</a>
          <div class="ui basic  left pointing label" th:classappend="${activeByTypesId==type.typesId} ? 'teal'" th:text="${type.blogNums}">24</div>
        </div>
      </div>
    </div>

    <div class="ui top attached teal m-opacity segment">
      <div class="ui padded vertical segment m-padded-tb-large" th:each="blog:${blogs}">
        <div class="ui middle aligned mobile reversed stackable grid" >
          <div class="eleven wide column">
            <h3 class="ui header" ><a href="#" class="m-black L-title-font" th:href="@{/blog/{blogId}(blogId=${blog.blogId})}" th:text="${blog.title}">大圣，此去欲何?</a></h3>
            <p class="m-text" th:text="|${blog.description}......|">戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回” 其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
            <div class="ui grid">
              <div class="eleven wide column">
                <div class="ui mini horizontal link list">
                  <div class="item">
                    <img src="../static/images/me.jpg" th:src="@{${blog.userImg}}"  alt="" class="ui avatar image">
                    <div class="content"><a href="#" target="_blank" th:href="@{/about}" class="header" th:text="${blog.nickname}">oneStar</a></div>
                  </div>
                  <div class="item">
                    <i class="calendar icon"></i><span th:text="${blog.formateTime(blog.update_time)}">2020-01-01</span>
                  </div>
                  <div class="item">
                    <i class="eye icon"></i> <span th:text="${blog.views}">2222</span>
                  </div>
                  <div class="item">
                    <i class="comment icon"></i> <span th:text="${blog.comment_count}">2222</span>
                  </div>
                </div>
              </div>
              <div class="right aligned five wide column">
                <a target="_blank" th:text="${blog.typesName}" class="ui teal basic label m-padded-tiny m-text-thin">好文</a>
              </div>
            </div>
          </div>

          <div class="five wide column">
            <a href="#" target="_blank" th:href="@{/blog/{blogId}(blogId=${blog.blogId})}">
              <img src="../static/images/backimg1.jpg" th:src="@{${blog.img}}" alt="" class="ui rounded image">
            </a>
          </div>

        </div>
      </div>
    </div>

  </div>
</div>
<!--置顶图标-->
<div id="toolbar" class="m-padded m-fixed m-right-bottom" style="display: none">
  <div class="ui vertical icon buttons ">
    <div class="ui center aligned basic segment" style="margin-bottom: 0">
      <button id="payButton" class="ui orange basic circular button">滴滴</button>
    </div>
    <a href="#" class="ui center aligned basic segment icon" style="margin-top: 0"><i class="ui medium orange chevron up icon"></i> </a>
  </div>
</div>

<br>
<br><br>
<br><br>
<br><br>

<<!--    抽取公共footer    -->
<div th:replace="share/common :: #footer"></div>



<!--    抽取公共js    -->
<div th:replace="share/common :: #js"></div>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });

</script>
</body>
</html>